<%@page import="kau.vo.AttendInfo"%>
<%@page import="kau.dao.CourseDAOImpl"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript" language="javascript"
	src="/nems/admin/time/prototype-1.js"></script>
<script type="text/javascript" language="javascript"
	src="/nems/admin/time/prototype-base-extensions.js"></script>
<script type="text/javascript" language="javascript"
	src="/nems/admin/time/prototype-date-extensions.js"></script>
<script type="text/javascript" language="javascript"
	src="/nems/admin/time/behaviour.js"></script>
<script type="text/javascript" language="javascript"
	src="/nems/admin/time/datepicker.js"></script>
<link rel="stylesheet" href="/nems/admin/time/datepicker.css" />
<script type="text/javascript" language="javascript"
	src="/nems/admin/time/behaviors.js"></script>
<title>Insert title here</title>
<style type="text/css">
<!--
@import url("css/style.css");
-->
</style>
<style type="text/css">
#info {
	font-family: 맑은 고딕, dotum, sans-serif, bold;
	font-size: 13px
}
</style>
</head>
<body>




	<form action="levelCheckAndGetAttendInfo.attendInfo">

		<div id="info">
			<table align="left" style="margin-left: 20px">

				<tr>
					<td><img src="/nems/attendInfo/img/checkin.png" width="40"
						alt="출결정보조회" /></td>

					<td>
						<h4
							style="font-weight: bold; color: #005700; text-align: left; font-size: 20px;">출결정보조회</h4>
					</td>
				</tr>

			</table>
			<br> <br> <br> <br>
		</div>
		<input type="hidden" name="custId" value="${sessionScope.custId}" /> <input
			type="hidden" name="courseId" value="${sessionScope.courseId}" />


		<div id="startDate" class="input-append date">
			<input class="datepicker" placeholder="날짜 입력" name="day" id="day"
				value='${requestScope.day}' style="height: 20px; width: 185px"
				readonly />

		</div>
		<input style="margin-left: 350px;" name="" type="image"
			src="img/btn_confirm.gif" alt="확인" /> <a style="margin-left: 50px;"
			href="/nems/course/index.jsp?content=/attendInfo/selectPeriod.jsp">
			<img border="0" src="/nems/attendInfo/img/excel_save.png">
		</a>
	</form>

	<table border='1' style="width: 80%" id="newspaper-a"
		summary="2007 Major IT Companies' Profit">

		<tr>
			<td>No.</td>
			<td>회원아이디</td>
			<td>회원이름</td>
			<td>출결시간</td>
			<td>퇴실시간</td>
			<td>상태</td>
			<td></td>
		</tr>
		<c:forEach var='attend' varStatus="status"
			items="${requestScope.attendInfoList}">
			<tr>
				<td><c:out value="${status.count}" /></td>
				<td><a
					href="getAttendView.attendInfo?
		custId=${attend.custId}&courseId=${sessionScope.courseId}">
						${attend.custId}</a></td>
				<td><c:out value="${attend.custName}" /></td>
				<td><c:if test="${attend.checkInTime!='00:00'}"><c:out value="${attend.checkInTime}" /></c:if></td>
				<td><c:if test="${attend.checkOutTime!='00:00'}"><c:out value="${attend.checkOutTime}" /></c:if></td>
				<td><c:out value="${attend.state}" /></td>
				<td><a
					href="getAttendInfo.attendInfo?
		custId=${attend.custId}&custName=${attend.custName}&day=${requestScope.day}
		&state=${attend.state}&checkInTime=${attend.checkInTime}&checkOutTime=${attend.checkOutTime}">
						출결수정</a></td>

			</tr>
		</c:forEach>


	</table>

</body>
</html>